build-path
Get a path for the given build.
Why?
- Asserts that all necessary metadata is present.
- Uses relative paths for flexibility.
- Platform and technology agnostic.
Install
npm install build-path --save
Usage
Get it into your program.
const buildPath = require('build-path');
Get the path where a given build should live.
const path = buildPath({
branch : 'master',
version : '1.0.0'
});
console.log(path);
Build paths cannot be constructed with incomplete data.
buildPath({ version : '1.0.0' });
API
buildPath(option)
option
Type: object
Build data.
branch
Type: string
The branch name of the build.
version
Type: string
The version of the build.
Related
Contributing
See our contributing guidelines for more details.
- Fork it.
- Make a feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
License
MPL-2.0 © Seth Holladay
Go make something, dang it.